Skip to main content

IServiceRunner<TRequest>

Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface IServiceRunner<TRequest> : IServiceRunner

Methods

OnBeforeExecute(IRequest, TRequest, Object)

View Source
Declaration
void OnBeforeExecute(IRequest req, TRequest request, object service)
Parameters
TypeName
ServiceStack.Web.IRequestreq
<TRequest>request
System.Objectservice

OnAfterExecute(IRequest, Object, Object)

View Source
Declaration
object OnAfterExecute(IRequest req, object response, object service)
Returns

System.Object

Parameters
TypeName
ServiceStack.Web.IRequestreq
System.Objectresponse
System.Objectservice

HandleExceptionAsync(IRequest, TRequest, Exception, Object)

View Source
Declaration
Task<object> HandleExceptionAsync(IRequest req, TRequest requestDto, Exception ex, object instance)
Returns

System.Threading.Tasks.Task<System.Object>

Parameters
TypeName
ServiceStack.Web.IRequestreq
<TRequest>requestDto
System.Exceptionex
System.Objectinstance

ExecuteAsync(IRequest, Object, TRequest)

View Source
Declaration
Task<object> ExecuteAsync(IRequest req, object instance, TRequest requestDto)
Returns

System.Threading.Tasks.Task<System.Object>

Parameters
TypeName
ServiceStack.Web.IRequestreq
System.Objectinstance
<TRequest>requestDto

Execute(IRequest, Object, IMessage<TRequest>)

View Source
Declaration
object Execute(IRequest req, object instance, IMessage<TRequest> request)
Returns

System.Object

Parameters
TypeName
ServiceStack.Web.IRequestreq
System.Objectinstance
ServiceStack.Messaging.IMessage<T>request

ExecuteOneWay(IRequest, Object, TRequest)

View Source
Declaration
object ExecuteOneWay(IRequest req, object instance, TRequest requestDto)
Returns

System.Object

Parameters
TypeName
ServiceStack.Web.IRequestreq
System.Objectinstance
<TRequest>requestDto